package routers

import (
	"chat-room/websocket/acc_controllers"
	"github.com/gin-gonic/gin"
)

func InitRoutersWebsocket(socket *gin.RouterGroup) {

	websocket := acc_controllers.Websocket{}

	//  ===  开始路由注册 start====
	websocketGroup := socket.Group("web")
	{
		websocketGroup.GET("/connect/:token", websocket.Run)
		websocketGroup.POST("/broadcast", websocket.Broadcast)
	}
}
